-- GENERATED SPELL FOR [Horde Witch Doctor] --


function spell0_17935(pUnit, Event) --@Healing Ward,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(31760,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_17935', 1, 1)
end

function spell1_17935(pUnit, Event) --@Holy Bolt,n/a--
pUnit:FullCastSpellOnTarget(31759,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17935', 2500, 1)
end

function Sorts_17935(pUnit, Event)
local choix_sorts_17935 = math.random(0, 1)
if choix_sorts_17935 == 0 then
pUnit:RegisterEvent('spell0_17935', 1, 1)
end
if choix_sorts_17935 == 1 then
pUnit:RegisterEvent('spell1_17935', 1, 1)
end
end

function mob17935_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17935', math.random(1500, 3000), 1)
end

function mob17935_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17935_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17935_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17935, 1, 'mob17935_Action')
RegisterUnitEvent(17935, 2, 'mob17935_Leave')
RegisterUnitEvent(17935, 3, 'mob17935_Kill')
RegisterUnitEvent(17935, 4, 'mob17935_Die')
